package com.fary.web.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {MapValueConstraintValidator.class})
public @interface MapValue {

    String[] value();

    String message() default "请求参数不能为空！";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
